package avicit.bdp.dds.dao.entity;

import avicit.bdp.common.base.BaseDTO;
import avicit.platform6.core.annotation.log.FieldRemark;
import avicit.platform6.core.annotation.log.Id;
import avicit.platform6.core.annotation.log.LogField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Table;

@ApiModel(value = "DefaultProjectUser", description = "bdp_dds_r_default_project_user")
@Table(name = "bdp_dds_r_default_project_user")
public class DefaultProjectUser extends BaseDTO {
    /**
     * id
     */
    @Id
    @LogField
    @ApiModelProperty(value = "id", name = "id")
    @FieldRemark(column = "id", field = "id", name = "id")
    @javax.persistence.Id
    @Column(name = "id")
    private String id;

    @LogField
    @ApiModelProperty(value = "默认项目id", name = "defaultProjectId")
    @FieldRemark(column = "default_project_id", field = "defaultProjectId", name = "项目id")
    @Column(name = "default_project_id")
    private String defaultProjectId;

    @LogField
    @ApiModelProperty(value = "用户id", name = "userId")
    @FieldRemark(column = "user_id", field = "userId", name = "用户id")
    @Column(name = "user_id")
    private String userId;

    @LogField
    @ApiModelProperty(value = "空间类型", name = "projectType")
    @FieldRemark(column = "project_type", field = "projectType", name = "空间类型")
    @Column(name = "project_type")
    private String projectType;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getDefaultProjectId() {
        return defaultProjectId;
    }

    public void setDefaultProjectId(String defaultProjectId) {
        this.defaultProjectId = defaultProjectId;
    }

    public String getProjectType() {
        return projectType;
    }

    public void setProjectType(String projectType) {
        this.projectType = projectType;
    }

    @Override
    public String toString() {
        return "DefaultProjectUser{" +
                "id='" + id + '\'' +
                ", defaultProjectId='" + defaultProjectId + '\'' +
                ", userId='" + userId + '\'' +
                ", projectType='" + projectType + '\'' +
                '}';
    }
}
